var basePage = require('../../../common/BasePage');
var baseList = require('../../../common/BaseList');
Page({
    behaviors: [basePage, baseList],
    data: {

    },
    onLoad: function (options) {
        console.log("options",options)
        if (!options.cate_id) {
            wx.showToast({
                title: '参数异常',
                icon: 'none'
            })
            return;
        }
        wx.setNavigationBarTitle({
          title: options.title||'帮助中心',
        })
        var wh_id=options.wh_id||getApp().globalData.warehouse.wh_id||1
        this.data.reqUrl = "/home/article/index?cate_id=" + options.cate_id+"&wh_id="+wh_id;
        this.req_items();
    },
    /**格式化列表中的数据 */
    init_val(val, index, arr) {
        // val.thumb = this.get_thumb(val.order.product_img);
        // // val.btnArr=[{text:'查看订单',type:'primary'}]
    },
})